package com.itheima.reggie.service;

import com.itheima.reggie.domain.Address;

import java.util.List;

public interface AddressService {
    //查询
    List<Address> findList();

    //新增方法
    void save(Address address);

    //设置默认地址
    void setDefault(Long id);

    //查询默认地址
    Address getDefault();

    //回显
    Address findById(Long id);

    //更新
    void update(Address address);

    //删除
    void delete(Long[] ids);
}
